package {{packageName}};

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.*;
import javax.validation.constraints.*;
{{#imports}}
{{.}}
{{/imports}}

@Data
@Schema(description = "{{modelDesc}}")
public class {{modelName}}{

{{#apiModelFields}}
    @Schema(description = "{{{fieldDesc}}}" {{#required}},requiredMode = Schema.RequiredMode.REQUIRED{{/required}} {{^required}},requiredMode = Schema.RequiredMode.NOT_REQUIRED{{/required}})
    {{#recursiveCheck}}
    @Valid
    {{/recursiveCheck}}
    {{#stringCheck}}
    @NotEmpty(message = "{{{fieldDesc}}}不能为空")
    {{/stringCheck}}
    {{#nullCheck}}
    @NotNull(message = "{{{fieldDesc}}}不能为空")
    {{/nullCheck}}
    {{#listCheck}}
    @Size(min = 1 ,message = "{{{fieldDesc}}}不能为空")
    {{/listCheck}}
    private {{{fieldType}}} {{fieldName}};

{{/apiModelFields}}

}